import request from './request.js';
import { https } from '../utils/https.js';

import { sessionKey } from '@/utils/config.js'

export function getOrderList(data) {
  return request({
    url: https.getOrderList,
    data,
    header: {
      'token': uni.getStorageSync(sessionKey)
    }
  })
}
export function cancelOrder(id,data) {
  return request({
    url: `${https.cancelOrder}${id}/cancel`,
    header: {
      'token': uni.getStorageSync(sessionKey)
    }
  })
}
